package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()
	group := r.Group("/test")
	group.GET("/hello", func(c *gin.Context) {
		c.String(http.StatusOK, "hello, world")
	})
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	err := r.Run(":8080")
	if err != nil {
		return
	}
}
